<?php 
$this->table->set_heading('Nombre','Ciudad','Categoria');
$tmp = array ( 'table_open'  => '<table border="0" cellpadding="2" cellspacing="1" class="allplace">',
			   'heading_cell_start'  => '<th>',
               'heading_cell_end'    => '<span></span></th>', ); 

$this->table->set_template($tmp); 
echo $this->table->generate(); 
?>
<script type="text/javascript">
$('table.allplace').dataTable(
		{
			"bFilter":false,
			"bInfo": true,
			"bLengthChange": false,
			"bProcessing": true,
	        "bServerSide": true,
	        "sAjaxSource": "allPlacesAjax",
	        "sServerMethod": "POST",
	        "iDisplayLength": 20,
		});
</script>
